import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/index/Index'
import HelloWorld from '@/components/HelloWorld'
import Home from '@/components/Home'
import LoginIn from '@/pages/login/Login'
import Register from '@/pages/register/register'
import Order from '@/pages/order/order'
import Orderzj from '@/pages/order/orderzj'
import jsOrderdetails from '@/pages/orderdetails/jsorderdetails'
import zjOrderdetails from '@/pages/orderdetails/zjorderdetails'
import shOrderdetails from '@/pages/orderdetails/shorderdetails'
import Orderdetails from '@/pages/orderdetails/orderdetails'
import details from '@/pages/zjorderdetails/orderdetails'
import jsdetails from '@/pages/zjorderdetails/jsorderdetails'
import zjdetails from '@/pages/zjorderdetails/zjorderdetails'
import shdetails from '@/pages/zjorderdetails/shorderdetails'
import Notice from '@/pages/notice/notice'
import message from '@/pages/notice/message'
Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'Index',
      meta: {
        title: '首页'
      },
      component: Index
    }, {
      path: '/index',
      name: 'HelloWorld',
      meta: {
        title: 'HelloWorld'
      },
      component: HelloWorld
    }, {
      path: '/home',
      name: 'home',
      component: Home
    }, {
      path: '/login',
      name: 'login',
      meta: {
        title: '登录'
      },
      component: LoginIn
    }, {
      path: '/register',
      name: 'register',
      meta: {
        title: '注册'
      },
      component: Register
    }, {
      path: '/order',
      name: 'order',
      meta: {
        title: '订单列表'
      },
      component: Order
    }, {
      path: '/orderzj',
      name: 'orderzj',
      meta: {
        title: '专家审核'
      },
      component: Orderzj
    }, {
      path: '/jsorderdetails',
      name: 'jsorderdetails',
      meta: {
        title: '江苏订单详情'
      },
      component: jsOrderdetails
    }, {
      path: '/zjorderdetails',
      name: 'zjorderdetails',
      meta: {
        title: '浙江订单详情'
      },
      component: zjOrderdetails
    }, {
      path: '/shorderdetails',
      name: 'shorderdetails',
      meta: {
        title: '上海订单详情'
      },
      component: shOrderdetails
    }, {
      path: '/orderdetails',
      name: 'orderdetails',
      meta: {
        title: '普通订单详情'
      },
      component: Orderdetails
    }, {
      path: '/notice',
      name: 'notice',
      meta: {
        title: '新闻详情'
      },
      component: Notice      
    }, {
      path: '/message',
      name: 'message',
      meta: {
        title: '消息列表'
      },
      component: message      
    },
    {
      path: '/details',
      name: 'details',
      meta: {
        title: '专家详情'
      },
      component: details          
    }, {
      path: '/jsdetails',
      name: 'jsdetails',
      meta: {
        title: '专家详情'
      },
      component: jsdetails          
    }, {
      path: '/zjdetails',
      name: 'zjdetails',
      meta: {
        title: '专家详情'
      },
      component: zjdetails          
    }, {
      path: '/shdetails',
      name: 'shdetails',
      meta: {
        title: '专家详情'
      },
      component: shdetails          
    }
  ]
})
